package itheima.zuoye.test4;

public class Test {
    public static void main(String[] args) {
        Employee e1 = new Employee();
        Animal a1 = new Dog("旺财");
        Animal a2 = new Cat("小猫");
        Animal a3 = new Pig("小猪");
        e1.feed(a1);
        e1.feed(a2);
        e1.feed(a3);
    }

}
